package com.ws.test;

/**
 * @author 王硕
 * @version jdk21
 * @className SharedBike
 * @description
 * @date 2024/11/13 16:33
 */
public class SharedBike {
    private Integer bid; // 单车编号
    private String bname; // 单车名称
    private Integer status; // 单车状态 - 0 已借出，1 可借状态
    private String borrowTime; // 单车借出时间

    public SharedBike(Integer bid, String bname) {
        this.bid = bid;
        this.bname = bname;
        this.status = 1; // 默认为可借状态
        this.borrowTime = null;
    }

    // Getters and Setters
    public Integer getBid() { return bid; }
    public String getBname() { return bname; }
    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }
    public String getBorrowTime() { return borrowTime; }
    public void setBorrowTime(String borrowTime) { this.borrowTime = borrowTime; }
}